package scripts;import javax.swing.JOptionPane;import bot.ScriptMethods;public class Autocast extends ScriptMethods implements Runnable {	private int spellID = 33; // Guthix claws	private int pid;	public void start() {		System.gc();		String index = JOptionPane.showInputDialog("Enter server index to cast on: "); 		pid = Integer.parseInt(index);		scriptRunning = true;		scriptThread = new Thread(this);		scriptThread.start();	}	public void stop() {		System.gc();		System.out.println("Stopping script");		scriptRunning = false;		scriptThread = null;	}	public void run() {		while (scriptRunning) {			try {				castOnPlayer(pid, spellID);				wait(1000);			} catch (Exception e) {				e.printStackTrace();			}		}	}}